import request from '@/utils/request'

// 查询检查费用列表
export function listExam(query) {
    return request({
        url: '/system/exam/list',
        method: 'get',
        params: query
    })
}

// 查询检查费用详细
export function getExam(examId) {
    return request({
        url: '/system/exam/' + examId,
        method: 'get'
    })
}


// 新增检查费用
export function addExam(data) {
    return request({
        url: '/system/exam',
        method: 'post',
        data: data
    })
}

// 修改检查费用
export function updateExam(data) {
    return request({
        url: '/system/exam',
        method: 'put',
        data: data
    })
}

// 删除检查费用
export function delExam(examId) {
    return request({
        url: '/system/exam/' + examId,
        method: 'delete'
    })
}

